home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-06-20 | 2.8 KB | 123 lines | [TEXT/MPS ] |
- ;------------------------------------------------------------------------------
- ;
- ; FILENAME
- ; NewApp.a
- ;
- ; DESCRIPTION
- ; Contains the jump table for all of the messages we override except
- ; the old-application compatibility ones. Also includes our special
- ; global data routines used by the code in GlobalData.c.
- ;
- ; COPYRIGHT
- ; Copyright © 1995 Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Modification history
- ; 06/14/95 - Dave Hersey - Version 1.0.3 to fix a bug in
- ; CustomBufferingAndIO.c when creating
- ; high-res PICTs, and to make the size
- ; of buffers more flexible.
- ;
- ; 05/26/95 - Dave Hersey - Version 1.0.2 to add the new 'outp'
- ; desktop printer resource in NewApp.c.
- ;
- ; 05/03/95 - Dave Hersey - Version 1.0.1 to fix some minor bugs in
- ; CustomBufferingAndIO.c.
- ;
- ; 01/14/95 - Dave Hersey - Created from the shell of a hollowed-out
- ; ImageWriter driver.
- ;
- ; NOTE: Relevant goodies are listed in MPW's "Mark" menu.
- ;
- ;--------------------------------------------------------------------------------
-
- CASE OBJ
- STRING ASIS
-
- SD_JumpTable PROC EXPORT
- dc.l 0
-
- ; Raster messages
-
- IMPORT SD_RasterDataIn
- JMP SD_RasterDataIn
-
- ; Universal messages
-
- IMPORT SD_ImageJob
- JMP SD_ImageJob
-
- IMPORT SD_StartSendPage
- JMP SD_StartSendPage
-
- IMPORT SD_FinishSendPage
- JMP SD_FinishSendPage
-
- IMPORT SD_SetupImageData
- JMP SD_SetupImageData
-
- IMPORT SD_OpenConnection
- JMP SD_OpenConnection
-
- IMPORT SD_CloseConnection
- JMP SD_CloseConnection
-
- IMPORT SD_CleanupOpenConnection
- JMP SD_CleanupOpenConnection
-
- IMPORT SD_BufferData
- JMP SD_BufferData
-
- IMPORT SD_FreeBuffer
- JMP SD_FreeBuffer
-
- IMPORT SD_WriteData
- JMP SD_WriteData
-
- IMPORT SD_DumpBuffer
- JMP SD_DumpBuffer
-
- IMPORT SD_DefaultDesktopPrinter
- JMP SD_DefaultDesktopPrinter
-
-
- ; -----------------------------------------------------------
- ; JUMP TABLE GLOBAL DATA SUPPORT
- ; -----------------------------------------------------------
-
- ; GlobalDataHdl is storage for a handle to our global data.
- ; We save and retrieve this value using the routines below.
- ; We default the value to nil, so that our global data
- ; routines can see if a valid handle has been stored here.
- ;
-
- GlobalDataHdl DC.L 0
-
- EXPORT SetDriverGlobals
- EXPORT GetDriverGlobals
-
-
- ; SetDriverGlobals saves the passed parameter in our global data storage
- ; (above). We call this routine from CreateAndStoreGlobals in
- ; NewApp.c.
- ;
-
- SetDriverGlobals LINK A6,#0
- LEA GlobalDataHdl,A0
- MOVE.L 8(A6),(A0)
- UNLK A6
- RTS
-
-
- ; GetDriverGlobals retrieves the handle stored in our global data
- ; storage (above). We call this routine from several routines in
- ; NewApp.c.
- ;
-
- GetDriverGlobals LEA GlobalDataHdl,A0
- MOVE.L (A0),D0
- RTS
-
- ENDPROC
- END
-